﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace TD.TheGame
{
    class PresentFence : CastleFence
    {
        public PresentFence(Game game, Vector2 position, bool active, int maxLoopTime, SpriteEnumState state)
            : base(game, position, active, maxLoopTime, state)
        {
        }

        public override string GetName()
        {
            return "PresentFence";
        }

        protected override Texture2D getTexture()
        {
            // NOTE: I find this a rather ugly solution.
            string assetName = ("level\\castle\\" + "game_fence2");
            manager.LoadAsset(assetName);
            return manager.UseAsset(assetName);
        }
    }
}
